/************************************************************************************\
This source file is part of the Universal Actor Library                              *
For latest info, see http://libuniactor.sourceforge.net/                             *
**************************************************************************************
Copyright (c) 2010 Kresimir Spes (kreso@cateia.com)                                  *
*                                                                                    *
* This program is free software; you can redistribute it and/or modify it under      *
* the terms of the BSD license: http://www.opensource.org/licenses/bsd-license.php   *
\************************************************************************************/
#ifndef _glSprite2D_h
#define _glSprite2D_h

#include <UniActor/Actor.h>
#include <string>

void loadSprite(std::string filename);

class glSprite2D : public UniActor::Actor
{
	std::string mDirectionString;
	float mFrameCounter;
public:
	glSprite2D();
	~glSprite2D();
	
	void OnDirectionChanged(gtypes::Vector3 old);
	void OnEndMovement();
	
	void draw();
	void update(float time_increase);
};

#endif
